package com.btshop.goods.pojo;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class StockBack implements Serializable {
    //订单id
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    //SKU的id
    @ApiModelProperty(value = "SKU的id")
    private Long skuId;

    //回滚数量
    @ApiModelProperty(value = "回滚数量")
    private Integer num;

    //回滚状态
    @ApiModelProperty(value = "回滚状态")
    private String status;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    //回滚时间
    @ApiModelProperty(value = "回滚时间")
    private Date backTime;

    //更新时间
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    //乐观锁版本号
    @ApiModelProperty(value = "乐观锁版本号")
    private Integer optimistic;

    //备注字段
    @ApiModelProperty(value = "备注字段")
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getBackTime() {
        return backTime;
    }

    public void setBackTime(Date backTime) {
        this.backTime = backTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getOptimistic() {
        return optimistic;
    }

    public void setOptimistic(Integer optimistic) {
        this.optimistic = optimistic;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", skuId=").append(skuId);
        sb.append(", num=").append(num);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", backTime=").append(backTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", optimistic=").append(optimistic);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}